package com.dorukdestan.p2pshare.storage;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import com.dorukdestan.p2pshare.logger.Logger;
import com.dorukdestan.p2pshare.model.SearchResult;

public class SearchResults {
	private static Logger logger;
	private static HashMap<String, SearchResult> searchResultsUnsynchronized;
	private static Map<String, SearchResult> searchResults;

	static{
		logger = new Logger(DownloadQueue.class);
		searchResultsUnsynchronized = new HashMap<String, SearchResult>();
		searchResults = Collections.synchronizedMap(searchResultsUnsynchronized);
	}

	public static Map<String, SearchResult> getSearchResults() {
		return searchResults;
	}
	
}
